package tech.topcoder.springcloud.simpleservice.mybatis;

import java.lang.annotation.*;

/**
 * 表切分注解，使用在Mapper上
 * Created by hhj on 17-1-19.
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface TableSegment {
    /**
     * 表名
     *
     * @return
     */
    String tableName();

    Class<? extends ShardStrategy> strategyClass();
}
